﻿@model DietPlanning.Models.User
@{
    ViewBag.Title = "AccountDetail";
    Layout = "~/Views/Shared/_LayoutUser.cshtml";
}
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Thông tin tài khoản</legend>
        @Html.HiddenFor(model => model.UserID)
        @Html.HiddenFor(model => model.Email)
        @Html.HiddenFor(model => model.Password)
        @Html.HiddenFor(model => model.Role)
        <table style="width: 75%">
            <td>
                <div class="editor-label">
                    Tên của bạn
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Name)
                    @Html.ValidationMessageFor(model => model.Name)
                </div>
                <div class="editor-label">
                    Giới tính
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Male)
                    @Html.ValidationMessageFor(model => model.Male)
                </div>
                <div class="editor-label">
                    Ngày sinh
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Birthday)
                    @Html.ValidationMessageFor(model => model.Birthday)
                </div>
            </td>
            <td>
                <div class="editor-label">
                    Số điện thoại
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Phone)
                    @Html.ValidationMessageFor(model => model.Phone)
                </div>
                <div class="editor-label">
                    Chiều cao
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Height)
                    @Html.ValidationMessageFor(model => model.Height)
                </div>
                <div class="editor-label">
                    Cân nặng
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Weight)
                    @Html.ValidationMessageFor(model => model.Weight)
                </div>
            </td>
        </table>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to Overview", "Index")
</div>
